package org.basis.algorithm.graph.common;

/**
 * 边
 *
 * @author Mr_wenpan@163.com 2021/12/23 16:07
 */
public class Edge {
    public int weight;
    public Node from;
    public Node to;

    public Edge(int weight) {
        this.weight = weight;
    }

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
